﻿using Domain.Entity.Waybill_cargo_management;
using Domain.Entity.Wb_dispatch;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.Wb_dispatch
{
    public class Wb_dpConfiger : IEntityTypeConfiguration<Wb_dp>
    {
        public void Configure(EntityTypeBuilder<Wb_dp> builder)
        {
            builder.ToTable(nameof(Wb_dp));
            builder.HasKey(e => e.Wb_dpid);
            builder.Property(e => e.Wb_dpid).HasColumnType("bigint");
            builder.Property(e => e.Wb_id).HasColumnType("int");
            builder.Property(e => e.Cr_id).HasColumnType("int");
            builder.Property(e => e.Pay_count).HasColumnType("Decimal");
            builder.Property(e => e.Dv_id).HasColumnType("int");
            builder.Property(e => e.Dv_phone).HasColumnType("varchar(11)");
            builder.Property(e => e.Delivery_status).HasColumnType("int");
        }
    }
}
